/* color */

$colorblue: #02335b; //深蓝
$colorgreen: #95d800; //绿色
$colorred: #cc3333; //红色
$colorgray: #cccccc; //灰色
$colorgroup1:#c8fbac;
$colorgroup2:#73d290;
$colorgroup3:#7ed7f5;
$colorgroup4:#f7d25f;
$colorgroup5:#91c6fa;
$colorgroup6:#81e8a1;
$colorgroup7:#74aeee;

/* clearfloat */

%clearfloat {
  *zoom: 1;
  &:after {
    content: "";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
  }
}


/* oneline */

%oneline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* login 登录窗体 */


/* js控制显示的样式 */

.loginwindowblock {
  display: block !important;
}


/* 底部遮罩层样式 */

.loginwindow-mask {
  display: none;
  position: fixed;
  z-index: 9998;
  background: rgba(black, .2);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: default;
}

///* 管理系统定位 */
//
//
//.manageposition {
//  
//}
//
//
///* 管理系统首页定位 */
//
//.indexposition {
//  width: $width + 4;
//  position: absolute;
//  left: -150px;
//}

/* 登录窗口样式 */

.loginwindow {
  $width: 300px;
  width: $width + 4;
  position: fixed;
  left: 50%;
  margin-left: - ($width / 2);
  top: 20%;
  display: none;
  z-index: 9999;
  border: 2px solid $colorgreen;
  box-sizing: border-box;
  cursor: default;
  //@extend %boxshadow1;
  box-shadow: 1px 1px 3px rgba(black, .3);
  animation: testanimations .1s;
  @keyframes testanimations {
    0% {
      transform: translateY(15px);
    }
    100% {
      transform: translateY(0);
    }
  }
  .login-close {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border: 2px solid $colorgreen;
    line-height: 22px;
    font-size: 14px;
    text-align: center;
    right: -22px;
    top: -22px;
    border-radius: .25em;
    color: $colorblue;
    cursor: pointer;
    font-family: "Microsoft Yahei";
    &:hover {
      color: $colorred;
    }
  }
}

.loginframe {
  position: relative;
  $width: 300px;
  .login-switch {
    list-style: none;
    width: $width;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background-color: white;
    .selected {
      display: none;
    }
    span {
      float: left;
      width: 300px!important;
      height: 50px;
      line-height: 50px;
      text-align: left;
      font-weight: bold;
      box-sizing: border-box;
      padding-left: 1em;
      font-size: 1em;
      color: $colorblue;
      cursor: default;
      font-family: "Microsoft Yahei";
      &:nth-of-type(1) {
        background: url(../img/login-saoma.png) right center no-repeat;
        background-size: 50px;
        position: relative;
        &:after {
          content: "扫码登录在这里→";
          display: inline-block;
          position: absolute;
          top: 14px;
          right: 40px;
          color: $colorblue;
          font-family: "Microsoft Yahei";
          font-size: 10px;
          opacity: .8;
          border: 1px solid rgba($colorgreen, .3);
          border-radius: 0.25em;
          height: 20px;
          line-height: 20px;
          font-weight: normal;
        }
      }
      &:nth-of-type(2) {
        background: url(../img/login-mima.png) right center no-repeat;
        background-size: 50px;
      }
      //      a {
      //        text-decoration: none;
      //        display: block;
      //        height:50px;
      //        width:100%;
      //        //background-color: rgba($colorgreen, .3);
      //        outline: none;
      //        &:hover {
      //          //text-decoration: underline;
      //        }
      //      }
    }
  }
  .fieldset {
    margin: 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
    line-height: 18px;
  }
  .codelogin {
    display: none;
    p {
      margin: 5px;
    }
    p:first-child {
      text-align: center;
      font-size: 0;
    }
    p:nth-child(2) {
      color: $colorblue;
      font-size: 12px;
      text-align: justify;
    }
    p:nth-child(3) {
      font-size: 12px;
      text-align: center;
      a {
        text-decoration: none;
        color: $colorred;
      }
    }
  }
  #logincode {
    table {
      margin: 0 auto;
    }
  }
  .login-form {
    background-color: white;
    width: $width;
    box-sizing: border-box;
    padding: 15px 20px;
    min-height: 226px;
  }
  .username-icon,
  .password-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    margin-top: -15px;
    transform: scale(.7);
    background-image: url(../img/user-password.png);
    background-repeat: no-repeat;
    color: transparent;
    width: 30px;
    height: 30px;
  }
  label {
    font-size: 13px;
  }
  .username-icon {
    background-position: -32px 0;
  }
  .password-icon {
    background-position: 0 0;
  }
  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 10px 20px 10px 50px;
    font-size: 1em;
    border-radius: .25em;
    border: 1px solid #d2d8d8;
    box-sizing: border-box;
    font-family: "Microsoft Yahei";
  }
  .forgetpassword {
    font-size: 13px;
    text-decoration: none;
    float: right;
    //margin-right: 20px;
    color: red;
  }
  .submit-button {
    display: inline-block;
    width: 100%;
    border-radius: .25em;
    background: rgba(#95d800, 1);
    padding: 8px 0;
    font-size: 1em;
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-right: 2px solid rgba(black, .3);
    border-bottom: 2px solid rgba(black, .3);
    &:active {
      //      box-shadow: 1px 1px 3px rgba(black,.3) inset;
      border-left: 2px solid rgba(black, .3);
      border-top: 2px solid rgba(black, .3);
      border-right: none;
      border-bottom: none;
    }
  }
}

.err-msg {
  color: red;
  font-size: 15px;
  text-align: center;
  font-family: "Microsoft Yahei";
  //font-weight: bold;
}
